<?php
class ModelCatalogBanner extends Model {	
	public function getBanners() {
        $query = $this->db->query("SELECT b.banner_id, b.link, b.title, b.text, b.note, b.image
            FROM " . DB_PREFIX . "banner b
            WHERE b.status = 1 ORDER BY b.ordination"
        );
	
	    $banner = $query->rows;
		 
		return $banner;
	} 
}
?>
